package com.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.payment.domain.pojo.PaymentRecord;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 支付记录表 Mapper 接口
 * </p>
 *
 * @author 小杰大人
 * @since 2025-09-29
 */
public interface PaymentRecordMapper extends BaseMapper<PaymentRecord> {

    @Select("select id, order_id, order_no, user_id, buyer_open_id, payment_type, trade_no, " +
            "payment_amount, payment_status, callback_content, callback_time, create_time, update_time from payment_record where order_no = #{orderNo}")
    PaymentRecord querySelectByOrderNo(String orderNo);
}
